use super::transaction::Transaction;

#[derive(Default, Debug, Clone, PartialEq, serde_derive::Serialize, serde_derive::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TriggerSmartContractResult {
    pub result: ContractResult,
    #[serde(rename = "transaction")]
    pub transaction: Transaction,
}

#[derive(Default, Debug, Clone, PartialEq, serde_derive::Serialize, serde_derive::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ContractResult {
    #[serde(rename = "result")]
    pub result: bool,
}
